package com.example.spring.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "queue-test1")
public class Receiver {

    @RabbitHandler
    public void receiver(String msg) {
        System.out.println("queue-test1 receiver:" + msg);
    }
}
